<include file="Public:_header" />
<div class="wf_kf_t2">
<a href="__URL__/list_debater">话题回复</a>
</div>
 <div class="wf_kf">
 
    <table width="885" style="border:0px;height:auto;" align="center">
     <Tr>
        <Td colspan="5" style="padding:10px;">话题列表</Td>       
      </Tr>
      <Tr>
        <Td style="padding:10px;">话题内容</Td>       
        <Td>发起者</Td>
        <Td>发布时间</Td>
        <Td>操作</Td>
      </Tr>
	  <volist name="list" id="k">
      <Tr>
        <Td style="padding:10px;">{$k.title}</Td>
        <Td>{$k.admin}</Td>
        <Td>{$k.ctime|date="20y-m-d ",###}</Td>
        <Td><eq name="k.status" value="1">审核通过&nbsp;&nbsp; <a href="javascript:void(0)" id="{$k.tid}" class="delkeyword">删除</a><else/><a href="javascript:void(0)" id="{$k.tid}" class="go">通过</a> &nbsp;&nbsp; <a href="javascript:void(0)" id="{$k.tid}" class="delkeyword">违规</a></eq></Td>
      </Tr>
	  </volist>
                
    </table>
</div>
<script>
$(document).ready(function(){
  $(".go").click(function(){
    id = $(this).attr('id');
    if(confirm('确认通过该条话题内容吗？')){
      $.post(U('topic/go_topic'),{id:id},function(res){
        admin.ajaxReload(res);
      },'json');
    }
  });
	$(".delkeyword").click(function(){
		id = $(this).attr('id');
		if(confirm('确认该条话题内容违规吗？')){
			$.post(U('topic/del_topic'),{id:id},function(res){
				admin.ajaxReload(res);
			},'json');
		}
	});
});
</script>